Skip to main content

Sugar - Vibration Module

Introduction

Sugar Cube Motor.png

Features


Controls motor rotation to achieve a vibration effect, similar to the principle of a mobile phone vibration motor

SignalDigital input 1 (high level): Turn on vibration 0 (low level): Turn off vibration

Module Principle

There is a motor inside, the axis of rotation of the motor is not symmetrically centered, which will result in the effect of overall vibration

Wiring

Future_Board_Lite_Motherboard_3 - 副本.png

Future_Board_Lite_InterfaceWire
Sugar_Vibration_Module.pngSugar Vibration ModulePort1White PH2.0-3Pin Interface Wireuntitled.100.png

Block Function Description

No.Block ImageBlock Function
1image-20240321140101510Control the switch of vibration module

warning Supports connection to Port1、Port2、Port3、Port4 Pay attention to the consistency between the interface and the actual interface during programming

Program - Function Description

info

image-20240316172724944

After pressing the button, wait for the button to be released and then start the vibration module

Program - Full program

image-20240316172716164

Effect

Press the A button to turn on the vibration module Press the B button to turn off the vibration module

Use Kittenblock

Use the app to download and run programs offline to view results

Using on Microbit

Robotbit_压缩后.png

Programming Platform

Microsoft MakeCode for micro:bit Use Makecode programming platform

Add the Sugar plugin

image-20240311154521941

image.png

Search for Sugar in extensions, click Add

Circuit connection

image.png

Microbit portWire
2 vibration module.pngSugar vibration moduleP0White PH2.0-3Pin interface wireuntitled.100.png

Block Function Description

No.Block ImageBlock Function
1image-20240316172144793Control the switch of vibration modul

Case: Button control

image-20240316171451191